package com.example.pilipili.service;

import com.example.pilipili.common.R;
import com.example.pilipili.pojo.dto.VInfo;
import com.example.pilipili.pojo.entity.Video;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyv
 * @since 2023-12-01
 */
public interface VideoService extends IService<Video> {

    R<Video> add(Video entry) ;

    R<List<Video>> selectByT(int tid,int page , int size) ;

    R<VInfo> getVInfoByVid(int vid) ;

    R<List<Video>> getsByULove(int uid);
    R<List<Video>> getsByUCollection(int uid);

    R<List<Video>> selectByLike(int tid,int page , int size,String likes) ;

    R<Video> update(Video entry) ;

    R<Video> addClick(int vid) ;

    // change status
    R<Video> changeStatus(int vid  , int newId, String note) ;

    // uid ,status
    R<List<Video>> getsByUidSid(int uid , int status) ;

    // status = 1
    R<List<VInfo>> getsWaitForReview() ;

    R<Video> changeStatus(Video v) ;








}
